import axios from "../axios";
import loader from "sass-loader";

/*
 * 字典管理模块
 */

// 保存
export const save = data => {
	return axios({
		url: "/dict/save",
		method: "post",
		data
	});
};


// 变量提升出了闭包还有啥  精度丢失 0.1+0.2===0.3
// webpack loader  多个同步请求怎么处理  优化
// 删除
export const batchDelete = data => {
	return axios({
		url: "/dict/delete",
		method: "post",
		data
	});
};
// 分页查询
export const findPage = data => {
	return axios({
		url: "/dict/findPage",
		method: "post",
		data
	});
};
// 获取服务器时间
export const getTime = params => {
	return axios({
		url: "/common/getTime",
		method: "get",
		params
	});
};
